package com.example.gatewayzuul.service;

import com.example.gatewayzuul.filter.PreRequestLogFilter;
import com.myprojects.common.dto.Msg;
import com.myprojects.common.pojo.Resource;
import com.myprojects.common.pojo.ResourceParent;
import com.myprojects.common.pojo.UserWithRole;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
public class FeignPermissionServiceFallback implements FeignPermissionService {

    private static final Logger logger = LoggerFactory.getLogger(FeignPermissionService.class);

    @Override
    public boolean checkUserRequest(String accessToken, String requestURI) {
        logger.info("警告！服务已熔断！所有权限操作请求都会被拒绝！");
        return false;
    }

}
